package com.csw.jdbc.service;
 
import com.csw.jdbc.entity.TbPermission;
import java.util.List;

 /**
 * 权限表(TbPermission)表服务接口
 * @author chengshengwen
 * @description 
 * @since 2021-11-01 00:20:08
 */
public interface TbPermissionService {
 
    //通过ID查询
    TbPermission queryById(Long id);
 
    //通过实体作为筛选条件查询
    List<TbPermission> queryAll(TbPermission tbPermission);
 
    //新增数据
    int insert(TbPermission tbPermission);
 
    //修改数据
    int updateById(TbPermission tbPermission);
 
    //通过主键id删除数据
    int deleteById(Long id);

    //根据用户id查询
    List<TbPermission>  selectByUserId(Long userId);

}